package com.yuandian.api.customer_perception.constant;

/**
 * 统计类型
 * @author: yanjun
 * @date: 2021/04/15
*/
public enum StatTypeEnum {
    /**
     * 业务周统计
     */
    week(1, "ads_business_low_frequency_stat_week", "业务周统计"),

    /**
     * 业务月统计
     */
    one_month(2, "ads_business_low_frequency_stat_month", "业务月统计"),

    /**
     * 业务三月统计
     */
    three_month(3, "ads_business_low_frequency_stat_three_month", "业务三月统计");

    /**
     * 统计类型
     */
    private int stateType;

    /**
     * 表名称
     */
    private String tableName;

    /**
     * 表说明
     */
    private String remarks;

    StatTypeEnum(int stateType, String tableName, String remarks) {
        this.stateType = stateType;
        this.tableName = tableName;
        this.remarks = remarks;
    }

    public static StatTypeEnum valueOf (int stateType) {
        switch (stateType) {
            case 1:
                return week;
            case 2:
                return one_month;
            case 3:
                return three_month;
        }
        return null;
    }

    public int getStateType() {
        return stateType;
    }

    public void setStateType(int stateType) {
        this.stateType = stateType;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
